package com.joinway.framework.site.beans.view;

import org.hibernate.validator.constraints.NotBlank;
import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import com.joinway.framework.bean.BaseBean;

@ApiObject(name="OrderCondition",description="列表查询排序条件")
public class OrderCondition extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotBlank
	@ApiObjectField(description="列名")
	private String field;

	@ApiObjectField(description="列名,默认desc",format="")
	private String order;

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
	
}

